﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VirtualDigibox.Entities
{
    public class Channel
    {
        public Channel()
        {
            ScheduleItems = new List<ScheduleItem>();
        }
        public List<ScheduleItem> ScheduleItems { get; set; }
        public string Name { get; set; }
        public string FetchURL { get; set; }
        public string DigiTVURL { get; set; }

        public List<ScheduleItem> ItemsToRecord
        {
            get
            {
                return ScheduleItems.Where(f => f.Record && !f.IsRecorded && f.Time < DateTime.Now).ToList();
            }
        }
    }
}
